package org.uugu.service;

import java.util.List;

import javax.annotation.Resource;

import org.uugu.dao.NewsDAO;
import org.uugu.model.News;
import org.uugu.util.PageControl;


public interface NewsManager {

	//=================================新闻添加====================================// 
	public abstract String add(News news);

	//===============================根据ID查询某条新闻===============================//
	public abstract List listById(Integer newsId);

	/********************************根据Item列出所有新闻列表***********************************/
	public abstract List listAllSearchNews(String key);

	/********************************页面控制输出***********************************/
	public abstract List listNewsInPage(Integer newsItem, PageControl pc);

	/*************************根据条数和类别列出指定数目的信息题目***********************/
	public abstract List listNewsByNumAndItem(int i, int item);

	public abstract NewsDAO getNewsDao();

	@Resource
	public abstract void setNewsDao(NewsDAO newsDao);

	public abstract String delById(Integer newsId);
	
	public String update(News news);


	

}